home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 June / CHIP 2006-06.2.iso / program / freeware / Democracy-0.8.2.exe / xulrunner / python / compiled_templates / video_info.py < prev   
Encoding:
Python Source  |  2006-04-10  |  2.1 KB  |  48 lines

  1. # This is a generated file. Do not edit.
  2. from template import Handle, fillAttr, quoteAndFillAttr, funcTable
  3. from IOBuffer import IOBuffer
  4. from xhtmltools import urlencode
  5. from templatehelper import quoteattr, escape, evalKey, toUni
  6. def fillTemplate(data, domHandler):
  7.     # Start of handle
  8.     handle = Handle(domHandler)
  9.  
  10.  
  11.     out = IOBuffer()
  12.     out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n")
  13.     out.write(u'<html dtvPlatform="')
  14.     out.write(quoteattr(urlencode(toUni(evalKey(u'dtvPlatform',data)))))
  15.     out.write(u'" eventCookie="')
  16.     out.write(quoteattr(urlencode(toUni(evalKey(u'eventCookie',data)))))
  17.     out.write(u'" xmlns:t=')
  18.     out.write(quoteAndFillAttr(u'http://www.participatorypolitics.org/',data))
  19.     out.write(u' xmlns=')
  20.     out.write(quoteAndFillAttr(u'http://www.w3.org/1999/xhtml',data))
  21.     out.write(u' xmlns:i18n=')
  22.     out.write(quoteAndFillAttr(u'http://www.participatoryculture.org/i18n',data))
  23.     out.write(u'>  \n\n<head>\n    <meta content=')
  24.     out.write(quoteAndFillAttr(u'text/html; charset=utf-8',data))
  25.     out.write(u' http-equiv=')
  26.     out.write(quoteAndFillAttr(u'content-type',data))
  27.     out.write(u'></meta>\n    <link href=')
  28.     out.write(quoteAndFillAttr(u'resource:css/video-info.css',data))
  29.     out.write(u' type=')
  30.     out.write(quoteAndFillAttr(u'text/css',data))
  31.     out.write(u' rel=')
  32.     out.write(quoteAndFillAttr(u'stylesheet',data))
  33.     out.write(u'></link>\n</head>\n\n<body>\n\n\n<div id=')
  34.     out.write(quoteAndFillAttr(u'videodetails-container',data))
  35.     out.write(u'>\n\n\t<div id=')
  36.     out.write(quoteAndFillAttr(u'videodetails-channeltitle',data))
  37.     out.write(u'>\n\t\t<h1>')
  38.     out.write(escape(evalKey(u'this getTitle',data)))
  39.     out.write(u'</h1> <h2>')
  40.     out.write(escape(evalKey(u'this getFeed getTitle',data)))
  41.     out.write(u'</h2>\n\t\t<h3>')
  42.     out.write(toUni(evalKey(u'this getPaymentHTML',data)))
  43.     out.write(u'</h3>\n\t</div>\n\t\n\t\n\n</div>\n\n    \n\n        \n\t\t\n\t\t\n\n</body>\n\n</html>')
  44.     out.close()
  45.  
  46.  
  47.     return (out, handle)
  48.